package constant.milk.cashbook.bean;

import android.os.Parcel;
import android.os.Parcelable;

public class SmsReceiverData implements Parcelable
{
	private String address;
	private String body;
	
	public SmsReceiverData(){};
	
	public SmsReceiverData(Parcel source)
	{
		this.address = source.readString();
		this.body = source.readString();
	}

	@Override
	public int describeContents()
	{
		return 0;
	}
	
	@Override
	public void writeToParcel(Parcel dest, int flags)
	{
		dest.writeString(this.getAddress());
		dest.writeString(this.getBody());
	}
	
	public static Parcelable.Creator<SmsReceiverData> CREATOR = new Creator<SmsReceiverData>()
	{
		@Override
		public SmsReceiverData[] newArray(int size)
		{
			return new SmsReceiverData[size];
		}
		
		@Override
		public SmsReceiverData createFromParcel(Parcel source)
		{
			return new SmsReceiverData(source);
		}
	};
	
	public String getAddress()
	{
		return address;
	}
	public void setAddress(String address)
	{
		this.address = address;
	}
	public String getBody()
	{
		return body;
	}
	public void setBody(String body)
	{
		this.body = body;
	}
}
